home *** CD-ROM | disk | FTP | other *** search
/ Ian & Stuart's Australian Mac 1 / Ian and Stuart's One (Australia).iso / Australasian Legends / Commercial / Rainbow Hill / MacDOS™ 2.0.0 / batches / listfile.bat < prev    next >
DOS Batch File  |  1993-07-30  |  256b  |  12 lines

  1. @echo off
  2. ! this is a simple example of the usage of OPEN/READ/CLOSE
  3. ! type        LISTFILE aName        to list the text file named 'aName'
  4. ! It is equivalent to the standard TYPE command
  5. !
  6.     onerror DONE_LBL
  7.     open %1 id
  8.     repeat DONE_LBL
  9.     read %id%
  10. :DONE_LBL
  11.     set id=
  12.